<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>牛津8</title>
<style>
h1{margin:0; padding:0;}
form input{height:30px;}
form span{font-weight:bold;}
</style>
</head>


<body>
    <form method="POST">
        <span>牛津词典</span>
        <input type="text" name="word" placeholder="输入单词..." value="{{ word }}">
        <input type="submit" value="查找">
    </form>

    <hr>


    {% if content %}
    <div class="fayin">
        {{ content | safe }}
    </div>
    {% endif %}
    <hr>



    {% if images %}
        <h2>图片：</h2>
        {% for img in images %}
            <img src="{{ img }}" width="200"><br>
        {% endfor %}
    {% endif %}


    {% if audios %}
        <h2>发音：//todo</h2>
        {% for audio in audios %}
            <audio controls>
            <source src="{{ audio }}" type="audio/ogg">
            </audio><br>
        {% endfor %}
    {% endif %}


</body>
</html>
